<?php

/**
 * Core_Request_Abstract
 *
 * @author JianJian <silverd@sohu.com>
 * $Id: Abstract.php 141 2012-10-20 16:39:49Z silverd30@gmail.com $
 */

abstract class Core_Request_Abstract
{
    /**
     * Instance parameters
     *
     * @var array
     */
    protected $_params = array();

    protected static $_instances = array();
    final public static function getInstance()
    {
        $class = get_called_class();

        if (!isset(self::$_instances[$class])) {
            self::$_instances[$class] = new $class();
        }

        return self::$_instances[$class];
    }
}